import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SeqSGuildWarPlayerRewardHelper } from "./SeqSGuildWarPlayerRewardHelper";
import { SeqSGuildWarGuildRewardHelper } from "./SeqSGuildWarGuildRewardHelper";
type int = number;
//class SGuildWarAllRewards
    
    export  class SGuildWarAllRewards extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SGuildWarAllRewards();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            SeqSGuildWarPlayerRewardHelper.write(arg1, this.playerRewards);
            SeqSGuildWarGuildRewardHelper.write(arg1, this.guildRewards);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.playerRewards = SeqSGuildWarPlayerRewardHelper.read(arg1);
            this.guildRewards = SeqSGuildWarGuildRewardHelper.read(arg1);
            return;
        }

        public /* const */_type: int=155;

        public /* var */playerRewards: Array<any>;

        public /* var */guildRewards: Array<any>;

        public static /* var */_regist: SGuildWarAllRewards;
    }

            SGuildWarAllRewards._regist = new SGuildWarAllRewards(true);
        